#pragma once

class CPubTcpClient
{
public:
	CPubTcpClient(void);
	~CPubTcpClient(void);

protected:
	SOCKET m_sckClient;

public:
	int Close(void);
	int Write( const char* buf, int len );
	int Read( char* buf, int len  );

	int Conn( const char* host, u_short port );
	int Conn( const ULONG ip, u_short port );

	int IsOpen(void);
	int IsReadable( int timeout = 2000 );

};
